const path = require("path")

module.exports = {
  publicPath: "/",
  devServer: {
    // after: require("./mock/mock-server"),
    proxy: {
      "/api": {
        changeOrigin: true,
        target: "http://58.247.81.182:27915/",
        ws: true
      }
    },
    host: "0.0.0.0",
    port: process.env.VUE_APP_PORT,
    disableHostCheck: true
  },
  configureWebpack: {
    devtool: process.env.NODE_ENV === "development" ? "inline-source-map" : false
  },
  transpileDependencies: ["vuex-module-decorators"]
}
